//
//  YJBTradeExplainViewController.m
//  YunJiaBaoFirst
//
//  Created by 腾云小白龍 on 16/7/29.
//  Copyright © 2016年 腾云小白龍. All rights reserved.
//

#import "YJBTradeExplainViewController.h"
#import "YJBTradeExplainToolsView.h"

@interface YJBTradeExplainViewController ()
@property (nonatomic ,strong) UILabel *titleLabel;
@end

@implementation YJBTradeExplainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNavigationItemWithTitle:@"合约详情"];
    [self initView];

}

-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:YES];
    self.tabBarController.tabBar.hidden = YES;
    
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:YES];
    self.tabBarController.tabBar.hidden = YES;
}

#pragma mark-- 初始化页面
- (void)initView {
    self.view.backgroundColor = DEFAULT_COLOR;
    YJBTradeExplainToolsView *toolsView = [[YJBTradeExplainToolsView alloc]initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 50)];
    [self.view addSubview:toolsView];
    
    UIScrollView * scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(toolsView.frame), SCREEN_WIDTH, SCREEN_HEIGHT - 85)];
    scrollView.showsVerticalScrollIndicator = NO;
    scrollView.showsHorizontalScrollIndicator = NO;
    scrollView.scrollEnabled = YES;
//    scrollView.backgroundColor = MAIN_COLOR;
//    self.scrollView = scrollView;
    [self.view addSubview:scrollView];
    
    UILabel *titleLab = [[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(toolsView.frame) + 30, SCREEN_WIDTH - 20, 30)];
    titleLab.textAlignment = NSTextAlignmentLeft;
    titleLab.font = [UIFont systemFontOfSize:14];
    titleLab.numberOfLines = 0;
    self.titleLabel = titleLab;
    [scrollView addSubview:titleLab];
    
    


}

- (void)didReceiveMemoryWarning {    
    [super didReceiveMemoryWarning];
}



@end
